import axios from '@/utils/request'

const ApiUrl = '/admin_api/invoice/invoices'
/**
 * @description: 发票列表
 */
export function getList(params) {
  return axios.get(`${ApiUrl}/`, {
    params
  })
}

export function edit(id, data) {
  return axios.put(`${ApiUrl}/${id}/`, data)
}

export function getDetail(id) {
  return axios.get(`${ApiUrl}/${id}/`)
}

export function markInvoiced(id) {
  return axios.post(`${ApiUrl}/${id}/mark_invoiced/`)
}
